<template>
	<view style="overflow: hidden;width: 100%;">
		<view v-for="(item, index) in list" :key="index" style="float: left;width: 50%;padding: 3px;">
			<view @click="gotos(item.id)" style="border-radius: 5px;background-color: #fff;padding: 5px;margin-top: 5px;">
				<view  style="height: 130px;position: relative;">
					<image style="display: block;height: 130px;width: 100%;" :src="item.imagelist[0]"></image>
					<view style="background-color: #114BA3;color: #fff;padding: 3px;
					width: 40px;text-align: center;position: absolute;top: 1px;left: 0;">供应</view>
				</view>
				<view style="padding: 10px;font-size: 16px;margin-top: 5px;">{{ item.title }}</view>
				<view style="margin-top: 5px;display: block;overflow: hidden;">
					<text style="display: block;color:#165DFF;font-size: 13px;min-width: 20px;border-radius: 3px;border: 1px solid #75AAF9;float: left;padding: 4px;font-weight: 600;">{{item.address}}</text>
					<text style="display: block;color:#165DFF;font-size: 13px;min-width: 20px;margin-left: 3px;border-radius: 5px;border: 1px solid #75AAF9;float: left;padding: 4px;font-weight: 600;">{{item.cname}}</text>
				</view>
				<view style="overflow: hidden;height: 40px;line-height: 40px;">
					<view style="width: 50%;float: left;">
						<text style="font-size: 14px;" class="tn-icon-funds tn-color-indigo"></text>
						<text style="font-size: 14px;color: #A0A8BF;margin-left: 5px;">{{item.konum}}</text>
					</view>
					<view style="width: 50%;font-size: 14px;float: left;text-align: right;color: #A0A8BF;">
						{{item.jtime}}小时前
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"tlist",
		props:{
			list:{
				type: Array
			}
		},
		data() {
			return {
				
			};
		},
		methods:{
			gotos(e) {
				uni.navigateTo({
					url: '/pages/index/detail?id=' + e
				})
			},
		}
	}
</script>
<style lang="scss" scoped>
</style>